<?php
/**
 * Description of Project
 *
 * @author GHoogendoorn
 * @version 0.1
 * 
 * Version history
 * 0.1  GHoogendoorn    Initial version
 */
class Project {
    

    /**
     *
     * @var int project_id : Id behorende bij dit Project
     */
    private $project_id;
    private $project_name;
    private $project_leider_id; // Type persoon
    private $project_informatie;
    private $coach_id;
    private $project_date;
    private $person_array;
    
    
    public function __construct($id) {
        //parent::__construct();
        if ( (strlen($id) > 0 ) && is_numeric($id) ){
            $this->selectById($id);
        }
    }

    public function Project() {
        
    }
    
    public function selectById($id=''){
        if ( (strlen($id) < 1) && (!is_numeric($this->project_id)) ){
            
        }
    }
    
    
    public function getPersonList(){
        
        return $this->person_array;
    }

}

class TestProject {

    public function TestProject() {
        try {
            $test = new Project();
            
            
        } catch (Exception $e) {
            echo '<pre>';
            echo $e->getTraceAsString();
            echo '</pre>';
            trigger_error($e->getMessage());
        }
    }

}

?>
